
import 'package:containerbox_study/Untils/app_exception.dart';

class ApiResponse<T> {
  late Status status;
  T? data;
  late AppException exception;
  ApiResponse.complected(this.data) : status = Status.COMPLETED;
  ApiResponse.error(this.exception) : status = Status.ERROR;

  @override
  String toString() {
    return 'Status : $status \n Message : $exception \n Data : $data';
  }
}



enum Status {
  COMPLETED,
  ERROR
}